diff --git a/tdeinit/start_tdeinit.c b/tdeinit/start_tdeinit.c
index e46aaa49..c4062ddb 100644
--- a/tdeinit/start_tdeinit.c
+++ b/tdeinit/start_tdeinit.c
@@ -19,6 +19,9 @@
 
 #include <config.h>
 
+#include <sys/types.h>
+#include <sys/stat.h>
+
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
